import { t } from '@src/locales'

export const getFixedColumns = () => {
  return [
    {
      displayName: t('common.fields.planNumber.displayName'),
      fieldName: 'planNumber',
    }, 
    {
      displayName: t('task.edit.planName'),
      fieldName: 'planName',
    },
    {
      displayName: t('common.projectManage.taskTypeText'),
      fieldName: 'planType',
    },
    {
      displayName: t('smartPlan.displayName.taskObj'),
      fieldName: 'planTypeName',
    },
    {
      displayName: t('common.base.status'),
      fieldName: 'planStatus',
    },
    {
      displayName: t('smartPlan.planRange'),
      fieldName: 'planRange',
    },
    {
      displayName: t('smartPlan.createDimension'),
      fieldName: 'createDimension',
    },
    {
      displayName: t('task.edit.allotSetting'),
      fieldName: 'allotSetting',
    },
    {
      displayName: t('common.base.startTime'),
      fieldName: 'startSetting',
    },
    {
      displayName: t('common.base.endTime'),
      fieldName: 'endSetting',
    },
    {
      displayName: t('common.base.recurrence'),
      fieldName: 'periodSetting',
    },
    {
      displayName: t('common.base.createUser'),
      fieldName: 'createUserName',
    },
    {
      displayName: t('common.base.createTime'),
      fieldName: 'createTime',
    },
    {
      displayName: t('smartPlan.displayName.updateUser'),
      fieldName: 'updateUserName',
    },
    {
      displayName: t('common.base.updateTime'),
      fieldName: 'updateTime',
    },
  ].map(f => {
    f.isSystem = 1
    return f
  })
}